home *** CD-ROM | disk | FTP | other *** search
- global gv, gh, gct, gsp, gpre, gmonth, nowpict, rwobj, gmsize, dobj, call
-
- on startMovie
- cursor(200)
- set call to [7, 8, 9, 7, 8, 9, 7, 8, 9, 7, 8, 9]
- openXLib("xGetDate")
- set dobj to xgetdate(mnew)
- set gv to the mouseV
- set gh to the mouseH
- set the exitLock to 1
- if yearcheck() = 1 then
- repeat with i = 1 to 4
- puppetSprite(i, 0)
- end repeat
- go("ready")
- else
- dosetup()
- end if
- end
-
- on dosetup
- repeat with i = 1 to 4
- puppetSprite(i, 1)
- set the stretch of sprite i to 0
- end repeat
- setsprite()
- end
-
- on yearcheck
- set ret to 0
- if (getyear() < "1995") or (getyear() > "1999") then
- set ret to 1
- end if
- return ret
- end
-
- on setsprite
- yearcheck()
- set gmonth to value(getmonth())
- set myyear to value(getyear())
- set nowpict to ((myyear - 1995) * 20) + gmonth
- set calnum to getAt(call, gmonth)
- if (gmonth mod 2) = 0 then
- set nowsp to 2
- else
- set nowsp to 3
- end if
- set the castNum of sprite 4 to the number of member nowpict
- set the castNum of sprite nowsp to the number of member calnum
- updateStage()
- end
-
- on myaction
- mysaver(1)
- if yearcheck() = 0 then
- setsprite()
- end if
- updateStage()
- end
-
- on mysaver x
- if (gv <> the mouseV) or (gh <> the mouseH) then
- dosaver(x)
- end if
- when keyDown then doSaver x
- when mouseDown then doSaver x
- end
-
- on dosaver x
- repeat with i = 1 to 4
- set the castNum of sprite i to the number of member "dummy"
- end repeat
- updateStage()
- if objectp(dobj) then
- dobj(mdispose)
- closeXLib("xgetDate")
- end if
- quit()
- end
-
- on areuready
- mysaver(2)
- if yearcheck() = 0 then
- go(the frame + 1)
- end if
- end
-
- on getdate
- set ret to EMPTY
- if objectp(dobj) then
- set ret to dobj(mgetdate)
- end if
- return ret
- end
-
- on getyear
- if objectp(dobj) then
- set ret to dobj(mgetyear)
- end if
- return ret
- end
-
- on getmonth
- if objectp(dobj) then
- set ret to dobj(mgetmonth)
- end if
- return ret
- end
-
- on getday
- if objectp(dobj) then
- set ret to dobj(mgetday)
- end if
- return ret
- end
-
- on gettime
- if objectp(dobj) then
- set ret to dobj(mgettime)
- end if
- return ret
- end
-
- on gethour
- if objectp(dobj) then
- set ret to dobj(mgethour)
- end if
- return ret
- end
-
- on getmin
- if objectp(dobj) then
- set ret to dobj(mgetmin)
- end if
- return ret
- end
-
- on getsec
- if objectp(dobj) then
- set ret to dobj(mgetsec)
- end if
- return ret
- end
-